package main

import "fmt"

type Student struct {
	name string
	age int
}

func (stu *Student) hello(person string) string{
	return fmt.Sprintf("hello %s, I am %s, I am %d",person,stu.name,stu.age)
}

func main()  {
	stu := &Student{
		name : "tom",
	}

	stu.age = 18
	msg := stu.hello("jack")


	fmt.Println(msg)
	fmt.Println(stu)
}
